cmake_minimum_required(VERSION 2.8)

add_compile_options(-std=c++11)

project(MyTicTacToe)

aux_source_directory(Src PROJ_SRCS)

if (WIN32)
	include_directories($ENV{SDL_INC})
	link_directories($ENV{SDL_LIB})
endif ()
include_directories(Src)

add_executable(${PROJECT_NAME} main.cpp ${PROJ_SRCS})

if (UNIX AND NOT ANDROID)
	target_link_libraries(${PROJECT_NAME} SDL2 SDL2_image)
elseif (WIN32 AND MINGW)
	target_link_libraries(${PROJECT_NAME} mingw32 SDL2main SDL2 SDL2_image)
endif ()
